package com.code.day16;

import java.util.function.Predicate;

public class PredicateLambda {
    public static void main(String[] args) {
        method(s ->s.length()==7 ,"abcdefg");
    }
    public static  void method(Predicate<String> predicate, String s){
        boolean result = predicate.test(s);
        System.out.println( result);
    }

}
